Skip to content

arch/arm/src/stm32h7: unassigned ret variable in SIOCSCANBITRATE. #16224

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

csanchezdll
Copy link
Contributor

Summary

This problem was introduced in #16199

In that PR, the assignment of "ret" variable was removed so now this variable might be used in uninitialized status when ioctl(...SIOCSCANBITRATE...) is called.

Impact

ioctl calls for CAN interfaces on stm32h7 can return as failed when they effectively succeeded.

Testing

The error was found due to a compiler warning after the previous PR was already merged.

This problem was introduced in apache#16199

Signed-off-by: Carlos Sanchez <[email protected]>
@github-actions github-actions bot added Arch: arm Issues related to ARM (32-bit) architecture Size: XS The size of the change in this PR is very small labels Apr 16, 2025
@xiaoxiang781216 xiaoxiang781216 merged commit 8f1d670 into apache:master Apr 16, 2025
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Arch: arm Issues related to ARM (32-bit) architecture Size: XS The size of the change in this PR is very small
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants